package cn.livingCloud.dto;

import cn.livingCloud.entity.content.ArticleReply;

/**
 * Created by DingJie  on 2015/12/24.
 */
public class ArticleReplyDto {
    private String uuid;
    private String Title;
    private String Description;
    private String PicUrl;
    private String Url;
    private String rank;

    public ArticleReplyDto() {
    }

    public ArticleReplyDto(ArticleReply article) {
        this.uuid = article.getUuid();
        this.Title = article.getTitle();
        this.Description = article.getDescription();
        this.PicUrl = article.getPicUrl();
        this.Url = article.getUrl();
        this.rank = String.valueOf(article.getRank());
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String title) {
        Title = title;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String description) {
        Description = description;
    }

    public String getPicUrl() {
        return PicUrl;
    }

    public void setPicUrl(String picUrl) {
        PicUrl = picUrl;
    }

    public String getUrl() {
        return Url;
    }

    public void setUrl(String url) {
        Url = url;
    }

    public String getRank() {
        return rank;
    }

    public ArticleReplyDto setRank(String rank) {
        this.rank = rank;
        return this;
    }

    public void update(ArticleReply reply) {
        reply.setTitle(this.Title)
                .setDescription(this.Description)
                .setPicUrl(this.PicUrl)
                .setUrl(this.Url);
    }
}
